package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 定时任务是否开启配置
 */
@Configuration
@ConfigurationProperties(prefix = "taskconfig")
public class TaskConfig {

    //true为开启，false关闭
    private static boolean flag;
    public static boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

}
